<?php
/**
 * Visi Db Table Row Validation Exception
 * This exception is thrown when a record fails to validate.
 *
 * @package     Visi
 * @subpackage  Models
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id$
 */
class Visi_Db_Table_Row_ValidationException extends Visi_Db_Table_Row_Exception {

    protected $_errors = array();
    
    protected $_row;
    
    public function setErrors($errors) {
    
        $this->_errors = $errors;
        return $this;
    
    }
    
    public function getErrors() {
    
        return $this->_errors;
    
    }
    
    public function setRow(Visi_Db_Table_Row $row) {
    
        $this->_row = $row;
        return $this;
    
    }
    
    public function getRow() {
    
        return $this->_row;
    
    }

}